#include"poll_sever.hpp"
#include<cstring>

static void Usage(std::string proc)
{
    std::cerr << "Usage:" << "\n\t" << proc << " port" << std::endl;
}
int main(int argc,char*argv[])
{
  if(argc!=2)
  {
    Usage(argv[0]);
  }
  unsigned short port=atoi(argv[1]);
  Poll_etta::poll_sever *pl=new Poll_etta::poll_sever(port);
  pl->InitSever();
  pl->Run();
  return 0;
}
